# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=gifsicle
pkgver=1.94
pkgrel=1
pkgdesc="Command-line tool for making, editing and getting information about GIF animations"
url="https://www.lcdf.org/gifsicle/"
arch="all"
license="GPL-2.0-only"
makedepends="libx11-dev libice-dev libsm-dev"
checkdepends="perl"
subpackages="$pkgname-doc"
source="https://www.lcdf.org/gifsicle/gifsicle-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
5dc84332d929bc765b642f31fb79ed2998b193985070513cb3e412bca519c7c6065537c14df13e9860ae09dc5c66a06ca5475b1fdee62cd9509d42a5e2d0c9b6  gifsicle-1.94.tar.gz
"
